package cn.glow.readingcloud.account.feign.client;

import cn.glow.readingcloud.account.feign.fallback.LikeSeeClientFallBack;
import cn.glow.readingcloud.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author Glow
 * @Date 2023-04-16 14:53:11
 * @Description 用户喜好图书feign接口调用
 * @Version 1.0
 */
@FeignClient(contextId = "like",name = "light-reading-cloud-account",fallbackFactory = LikeSeeClientFallBack.class)
public interface LikeSeeClient {
    @GetMapping("/account/like-see/get-count")
    Result<Integer> getBookLikesCount(@RequestParam("bookId") String bookId);

}
